﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace easyList.Entities
{
    class FileSystemFolder
    {

        private List<FileSystemFile> fileList = new List<FileSystemFile>();


        internal void addFile(FileSystemFile currentFile)
        {
            this.fileList.Add(currentFile);
        }


        public List<FileSystemFile> getFileList()
        {
            return this.fileList;
        }

        public void addListToFileList(List<FileSystemFile> newList)
        {
            List<FileSystemFile> tmpList = new List<FileSystemFile>();
            foreach (FileSystemFile currFile in this.fileList){
                tmpList.Add(currFile);
            }
            foreach (FileSystemFile currFile in newList)
            {
                tmpList.Add(currFile);
            }

            this.fileList = tmpList;
        }

    }
}
